<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div  id="content">
            <section class="content-header">
                <h1>
                    <i class="fa  fa-send"></i>
                    <strong>登记预计订货</strong>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
                    <li>信息管理</li>
                    <li class="active">登记预计订货</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="box box-info">
                            <div class="box-header with-border">
                                <i class="fa fa-th-list"></i>
                                <h4 class="box-title">登记预计订货</h4>
                            </div>
                            <div class="box-body">
                                <div class="form-inline">
                        	   <div class="input-group">
								<input type="text" class="form-control" id="keyword"  placeholder="Search..." />
								<span class="input-group-btn">
									<button type="button" id="searchBtn" class="btn btn-info searchBtn">查询</button>
                                     <button type="button" id="resetBtn" class="btn btn-info cancelBtn">撤消</button>
								</span>
							</div>
							<div class="input-group">
<!-- 						
							<form action="" method="get">
									<label><input name="isReceived" type="radio" value="已提交" />已提交 </label> 
									<label><input name="isReceived" type="radio" value="未提交" checked="checked"/>未提交</label> 
									<label><input name="isReceived" type="radio" value="已关闭" />已关闭</label> 
									<label><input name="isReceived" type="radio" value="" />全部</label> 
							</form> -->
							</div>
							</div>
							</div>
                             <div class="box box-body" style="width:100%;overflow-x:scroll;">
                            		<table id="dataTableOrder" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" align="center">
                                    <thead>
                                        <tr>
										   <th width="5%">序号</th>
                                            <th width="5%">选择</th>
                							   <th width="15%">信息名称</th>
                							   <th width="15%">重要程度</th>
                							   <th width="15%">所属行业</th>
               							   <th width="15%">信息来源</th>
               							   <th width="15%">信息来源单位</th>
               							   <th width="15%">创建人</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                	
               						</tbody>
                                	</table>
                                	 <div>
									<button type="button" id="btnSelect" class="btn btn-primary pull-left">选择</button>
								</div>
								<form id="chanceForm" class="widget-box">
								<input type="hidden" id="chanceId"/>
                                	<table class="table table-bordered">
                                		<tr>
                                			<td class="center">片区</td>
                                			<td><select class="form-control" type="text" id="orderUnitArea" name="orderUnitArea" style="width: 100%">
											<option></option>
											<option th:each="saleArea:${saleAreas}"	th:text="${saleArea.superiorArea}">
	                                    </option>
										</select></td>
										<td class="center">订单单位</td>
										<td>
										<div class="col-md-10 input-group" style="margin-left:8px;">
						              	<input readonly="readonly" class="form-control" type="text" id="orderUnit" name="orderUnit"/>
						              	<span class="input-group-btn">
											<button type="button" id="queryCustomer" class="btn btn-info" title="引入客户"><i class="fa fa-search"></i></button>
										</span>
										</div>
									<!--<select class="form-control" type="text" id="orderUnit" name="orderUnit" style="width: 100%">
											<option></option>
											<option th:each="orderUnit:${orderUnits}"
												th:text="${orderUnit.title}">
											</option>
										</select> -->
										</td>
										<td class="center">项目名称</td>
										<td><input class="form-control" type="text" id="name" name="name"/></td>
										<td>设备名称</td>
										<td><input class="form-control" type="text" id="deviceState" name="deviceState"/></td>
                                		</tr>
                                		<tr>
                                			<td class="center">项目负责人</td>
                                			<td><input class="form-control" type="text" id="chargePerson" name="chargePerson"/></td>
                                			<td class="center">预计中标率(%)</td>
                                			<td><input class="form-control" type="text" id="probability" name="probability" datatype="*,*1-100,t"/></td>
                                			<td class="center">数量</td>
                                			<td><input class="form-control" type="text" id="orderAmount" name="orderAmount" datatype="*,*1-100,t"/></td>
                                			<td class="center">金额(元)</td>
                                			<td><input class="form-control" type="text" id="amountMoney" name="amountMoney" datatype="*,*1-100,t"/></td>
                                		</tr>
                                		<tr>
                                			<td class="center">预计订货时间</td>
										<td><input type="date" class="form-control" id="expectedDate" name="expectedDate" datatype="*,*1-100,t"/> </td>
										<td colspan="6">
										</td>                                			
                                		</tr>
                                		<tr>
                                			<td class="center">中标率说明</td>
                                			<td colspan="7"><textarea id="explain" name="explain" style="width: 90%;resize: no;" cols="5"></textarea></td>
                            			</tr>
                                	</table>
                                 <div>
                                 	<button type="button" class="btn btn-primary pull-right" onclick="javascript:history.go(-1)">返回</button>
                                 	<button type="button" id="btnReSet" class="btn btn-primary pull-right">还原</button>
									<button type="button" id="btnCSave" class="btn btn-primary pull-right">保存</button>
									
								</div>
								</form>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
	<!--引入客户信息弹窗-->
    	<div class="modal" id="queryCustomerModal">
        <div class="modal-dialog" role="dialog" style="width:60%">
            <form id="queryCustomerForm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>客户信息引入</strong></h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-horizontal">
                            <div class="box-body">
                                <div class="form-inline">
                                	<div class="input-group">
										<input type="text" class="form-control" id="keyword1"  placeholder="Search..." />
										<span class="input-group-btn">
											<button type="button" id="searchBtn1" class="btn btn-info searchBtn">查询</button>
                                            <button type="button" id="resetBtn1" class="btn btn-info resetBtn">撤消</button>
										</span>
									</div>
								</div>
                            </div>
                            <div class="box box-body" >
                                <table id="customerTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="100%" align="center">
                                    <thead>
                                        <tr>
                                            <th width="10%">序号</th>
                							<th width="20%">单位名称</th>
                				            <th width="20%">所属片区</th>
                				            <th width="20%">行业</th>
                				            <th width="20%">上级单位</th>
                				            <th width="10%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                	
               						</tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                       <button type="button" class="btn btn-info" id="pull-in">引入</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <script th:src="@{/expectedOrder/expectedOrderRegister.js}"></script>
    </div>
</body>
</html>